package elementsRf;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

public class Div implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -3331162597759179955L;
	private int x;
	private int y;
	private int dx;
	private int dy;
	
	private Background background;

	private String divId;
	
	private List<Div> innerDivs;
	private List<Content> playlist;

	
	public Div(int x, int y, int dx, int dy, Background background, String divId) {
		this.innerDivs = new LinkedList<Div>();
		this.playlist = new LinkedList<Content>();
		this.x = x;
		this.y = y;
		this.dx = dx;
		this.dy = dy;
		this.background = background;
		this.divId = divId;
	}

	
	
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	public int getDx() {
		return dx;
	}
	public void setDx(int dx) {
		this.dx = dx;
	}
	public int getDy() {
		return dy;
	}
	public void setDy(int dy) {
		this.dy = dy;
	}
	public List<Div> getInnerDivs() {
		return innerDivs;
	}
	public void setInnerDivs(List<Div> innerDivs) {
		this.innerDivs = innerDivs;
	}
	public List<Content> getPlaylist() {
		return playlist;
	}
	public void setPlaylist(List<Content> playlist) {
		this.playlist = playlist;
	}

	public void addContent(Content content) {
		playlist.add(content);
	}
	
	
	public void addDiv(Div div) {
		innerDivs.add(div);
	}




	public Background getBackground() {
		return background;
	}




	public void setBackground(Background background) {
		this.background = background;
	}

	public String getDivId() {
		return divId;
	}

	public void setDivId(String divId) {
		this.divId = divId;
	}
	
	
	

}
